package org.tru42.signal.processors.converter;

import org.tru42.signal.lang.NamedBitSet;
import org.tru42.signal.lang.SObject;
import org.tru42.signal.lang.annotation.Signal;
import org.tru42.signal.lang.annotation.Sink;

public class NumberToBitSet extends SObject {

	@Signal
	public void bitset(long timestamp, NamedBitSet bitset) {
		trigger("bitset", timestamp, bitset);
	}
	
	@Sink
	public void number(long timestamp, Number num) {
		bitset(timestamp, new NamedBitSet(num));
	}
}
